home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / C⁄C++ OS8 / AMReminder / DReminder.h < prev    next >
Encoding:
Text File  |  1998-10-17  |  1.8 KB  |  74 lines  |  [TEXT/CWIE]

  1. // DReminder -- data class for AMReminder
  2.  
  3. #pragma once
  4.  
  5. #include "AMSignaler.h"
  6.  
  7.  
  8. const long    idDateTime        = 'Date';
  9. const long    idMessage        = 'Mese';
  10. const long    idShowAlert        = 'Shot';
  11. const long    idShowIcon        = 'Shon';
  12. const long    idPlaySound        = 'Plad';
  13. const long    idSoundIndex        = 'Soux';
  14. const long    idDateString        = 'Datg';
  15. const long    idTimeString        = 'Timg';
  16. const long    idYearMonthDay        = 'Yeay';
  17. const long    idHourMinute        = 'Houe';
  18.  
  19. class AMEngine;
  20.  
  21. //----------
  22. class DReminder : public AMSignaler {
  23. public:
  24.                 DReminder ();
  25.     virtual        ~DReminder ();
  26.  
  27. public:
  28.     void        CopyFrom        (const DReminder&        inOther);
  29.     void        ReadFromFile    (AMEngine*        engine);
  30.     void        WriteToFile        (AMEngine*        engine);
  31.  
  32. public:
  33.     LongDateRec        GetDateTime () const;
  34.     void        SetDateTime    (LongDateRec        inValue);
  35.  
  36.     StringPtr    GetMessage    (Str255        outStr = nil) const;
  37.     void        SetMessage    (Str255        inValue);
  38.     void        SetMessage    (CharsHandle    inValue);
  39.  
  40.     Boolean        GetShowAlert () const;
  41.     void        SetShowAlert    (Boolean        inValue);
  42.  
  43.     Boolean        GetShowIcon () const;
  44.     void        SetShowIcon    (Boolean        inValue);
  45.  
  46.     Boolean        GetPlaySound () const;
  47.     void        SetPlaySound    (Boolean        inValue);
  48.  
  49.     SInt16        GetSoundIndex () const;
  50.     void        SetSoundIndex    (SInt16        inValue);
  51.  
  52.     StringPtr    GetDateString    (Str255        outStr = nil) const;
  53.     void        SetDateString    (Str255        inValue);
  54.     void        SetDateString    (CharsHandle    inValue);
  55.  
  56.     StringPtr    GetTimeString    (Str255        outStr = nil) const;
  57.     void        SetTimeString    (Str255        inValue);
  58.     void        SetTimeString    (CharsHandle    inValue);
  59.  
  60.     LongDateRec        GetYearMonthDay () const;
  61.     void        SetYearMonthDay    (LongDateRec        inValue);
  62.  
  63.     LongDateRec        GetHourMinute () const;
  64.     void        SetHourMinute    (LongDateRec        inValue);
  65.  
  66. protected:
  67.     LongDateRec        mDateTime;
  68.     Str255        mMessage;
  69.     Boolean        mShowAlert;
  70.     Boolean        mShowIcon;
  71.     Boolean        mPlaySound;
  72.     SInt16        mSoundIndex;
  73. };
  74.